package com.yms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yms.pojo.Menu;
import com.yms.pojo.Result;
import com.yms.pojo.TreeResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2020-03-20
 */
public interface IMenuService extends IService<Menu> {
    //加载当前用户的菜单信息
    List<TreeResult> selMenuInfoService(String id, Integer aid);

    Result addMenu(Menu menu);

    Result updaMenu(Menu menu);

    Result deleteMenuById(Integer mid);

    List<TreeResult> menuInfoALL(String id);
}
